From: Milan Crha Date: Mon, 30 Apr 2018 15:58:43 +0000 (+0200) Subject: calendar-server: Update views only after the time range is set X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~929^2~5^2~74 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0932324d3900810cda3babff01f444e09ba62095;p=gnome-shell.git calendar-server: Update views only after the time range is set The gnome-shell-calendar-server calls to refresh queries even when it has no time range set, which results in: a) waste of resources (for example after login), b) many runtime warnings in the journalctl log, related to incorrect time range being used. https://gitlab.gnome.org/GNOME/gnome-shell/issues/244 --- diff --git a/src/calendar-server/gnome-shell-calendar-server.c b/src/calendar-server/gnome-shell-calendar-server.c index e979f7ff3..9b76fb073 100644 --- a/src/calendar-server/gnome-shell-calendar-server.c +++ b/src/calendar-server/gnome-shell-calendar-server.c @@ -590,6 +590,11 @@ app_load_events (App *app) g_list_free (app->live_views); app->live_views = NULL; + if (!app->since || !app->until) + { + print_debug ("Skipping load of events, no time interval set yet"); + return; + } /* timezone could have changed */ app_update_timezone (app);